<?php
require_once AK_ROOT.'include/global.func.php';
require_once AK_ROOT.'include/admin.func.php';
$templatedir = AK_ROOT.'templates/'.$template_path.'/';
require(AK_ROOT.'include/smarty/libs/Smarty.class.php');
$smarty = new Smarty;

if(file_exists('./resetpassword.php')) aexit('please remove resetpassword.php first.');
if($__callmode == 'web') {
	if(empty($admin_id) && strpos($_SERVER['REQUEST_URI'], 'login.php') === false && strpos($_SERVER['REQUEST_URI'], 'install.php') === false) {
		go($systemurl."login.php");
	}
}
if(!isset($language)) $language = isset($setting_language) ? $setting_language : 'english';
$lan = lan($charset, $language);
if(empty($nodb)) $db = db();
?>